package _12interface.homework4;

public class Test {
    public static void main(String[] args) {
        Rectangle rectangle=new Rectangle();
        rectangle.setA(2);
        rectangle.setB(5);
        System.out.println("矩形的周长为"+rectangle.getCir());
        System.out.println("矩形的面积为"+rectangle.getArea());
        Circle circle=new Circle();
        circle.setRadius(6);
        System.out.println("圆的周长为"+circle.getCir());
        System.out.println("圆的周长为"+circle.getArea());
    }
}
